package com.example.chat.session.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;

import java.math.BigDecimal;

import java.time.LocalDateTime;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper=false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("scs_session_assessment")
public class SessionAssessmentEntity implements Serializable{

    @Serial
    private static final long serialVersionUID = 1L;

    public static final String ID = "id";
    public static final String SESSION_ID = "session_id";
    public static final String STAR = "star";
    public static final String REMARKS = "remarks";
    public static final String CREATE_TIME = "create_time";
    public static final String UPDATE_TIME = "update_time";
    public static final String IS_DELETED = "is_deleted";

    /** 主键 */
    @TableId(value = ID, type = IdType.AUTO)
    private Long id;

    /** 会话ID */
    @TableField(value = SESSION_ID)
    private Long sessionId;

    /** 评星 */
    @TableField(value = STAR)
    private BigDecimal star;

    /** 备注 */
    @TableField(value = REMARKS)
    private String remarks;

    /** 创建时间 */
    @TableField(value = CREATE_TIME, fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /** 更新时间 */
    @TableField(value = UPDATE_TIME, fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    /** 是否软删：0-否，1-是 */
    @TableField(value = IS_DELETED)
    private Integer isDeleted;


}
